package com.stylefeng.guns.modular.channel_manage.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道信息表
 * </p>
 *
 * @author GodRui
 * @since 2020-06-26
 */
@TableName("channel_info")
@Data
public class ChannelInfo extends Model<ChannelInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一主键，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 渠道名称
     */
    @TableField("channel_name")
    private String channelName;
    /**
     * 渠道号
     */
    @TableField("channel_no")
    private String channelNo;
    /**
     * 账户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 删除时间
     */
    @TableField("delete_time")
    private Date deleteTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
